//
//  BaoJiaDepositTableViewCell.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/12.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "BaoJiaDepositTableViewCell.h"

@implementation BaoJiaDepositTableViewCell{
    GLGWLabel * depositLabel;
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        GLGWLabel * leftTitLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self.contentView];
        leftTitLabel.text = @"需冻结求购定金";
        [leftTitLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(self.contentView.mas_top).offset(kHeightProportion_In_iPhoneTriploid(12));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(20)));
        }];
        //
        depositLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#EC5353"] inSuperView:self.contentView];
        depositLabel.text = @"100元";
        [depositLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self.contentView.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
            make.top.height.equalTo(leftTitLabel);
        }];
        //
        GLGWLabel * miaoShuLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(12) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self.contentView];
        miaoShuLabel.text = @"定金求购成交或取消后，定金将返还至钱包余额";
        [miaoShuLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(leftTitLabel);
            make.top.equalTo(leftTitLabel.mas_bottom).offset(kHeightProportion_In_iPhoneTriploid(5));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(17)));
        }];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
